package com.lagou.server;

import com.lagou.Mapper;
import com.lagou.servlet.Servlet;
import com.lagou.socket.BioService;
import com.lagou.socket.MiniCatService;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import java.io.File;
import java.io.InputStream;
import java.net.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.*;
import java.util.stream.Collectors;

public class Bootstrap {
    private int port = 8080;

    public void start() throws Exception {
        BioService service = new BioService();
        service.listen(port, Integer.MAX_VALUE);
        service.execute();
    }

    public static void main(String[] args) throws Exception {
        new Bootstrap().start();
    }
}
